package com.banggood.upms.dao;


import com.banggood.upms.bean.po.Tree;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TreeDao extends BaseDao<Tree> {

    /**
     * 节点code是否存在
     * @param tree
     * @return
     */
    int ifNodeCodeExists(Tree tree);

    /**
     * 过滤掉不是岗位树的树节点，只保留岗位树节点
     * @param treeIds
     * @return
     */
    List<String> filterNonJobNodeId(List<String> treeIds);
}